using UnityEngine;

/// <summary>
///     ��mainmenu��Ӧ��active�󣬶�Ӧ��menukey��Ҫ����ʽ�ϵĸı�
/// </summary>
public class MainMenuKey : MonoBehaviour
{
    private string _name;

    private void Start()
    {
        _name = gameObject.name;
    }

    public void ButtonClickSubmit()
    {
        InventoryManager.Instance.MainMenuSwitch(_name);
    }
}